package com.hs.jhzd.entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.CreationTimestamp;
import lombok.Data;

@Data
public class Meeting {
  private String  id;

  private String jsbh;

  private Byte type;// 检察官、所领导、管教、律师、医生

  private String disease;

  private String diseaseName;

  private Date date;//预约时间

  private boolean done;

  private String rybh;

  private String prisonerName;

  private String remark;
  //处理状态(1处理，2忽略)
  private Integer status;

  @Column(updatable = false)
  @CreationTimestamp
  @Temporal(TemporalType.TIMESTAMP)
  private Date createTime;//执行时间（结束时间）

  public Meeting(String id,Byte type, String disease, Date date, String rybh, String prisonerName, Integer status, Date createTime) {
    this.id = id;
    this.type = type;
    this.disease = disease;
    this.date = date;
    this.rybh = rybh;
    this.prisonerName = prisonerName;
    this.status = status;
    this.createTime = createTime;
  }
}
